package com.db.transaction.manager.test;

import java.lang.reflect.Field;

public class MyTest02 {


    public static void main(String[] args) throws NoSuchFieldException, IllegalAccessException {
        MyEntity myTest02 = new MyEntity();
        Field aa = myTest02.getClass().getDeclaredField("aa");
        aa.setAccessible(true);
        String o = ((String) aa.get(myTest02));
        System.out.println(o);
        o = o.concat("zhanggq");
        aa.set(myTest02, o);
        o = (String) aa.get(myTest02);
        System.out.println(o);

    }
}
